package com.clwl.supervise.superviseapp.entity.supervise;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 调查处理内容
    */
@Data
@TableName(value = "JG_INVESTIGATION_CONTENT")
//@KeySequence(value = "JG_INVESTIGATION_CONTENT_SEQ")
public class JgInvestigationContent implements Serializable {

    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 调查处理ID
     */
    @TableField(value = "INVESTIGATION_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long investigationId;

    /**
     * 检查类型；1-日常检查；2-双随机检查；3-飞行检查；4-体系检查;6-专项检查（上级下发的非计划）
     */
    @TableField(value = "CHECK_TYPE")
    private String checkType;

    /**
     * 根据检查类型对应检查内容ID，如(JG_DAILY_CONTENT表id，其他的检查对应其他检查的内容表ID)
     */
    @TableField(value = "CHECK_CONTENT_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkContentId;

    /**
     * 创建时间（发件时间）
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "CREATOR_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long creatorId;

    /**
     * 创建人姓名
     */
    @TableField(value = "CREATOR_NAME")
    private String creatorName;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 修改人id
     */
    @TableField(value = "UPDATE_USER_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateUserId;

    /**
     * 修改人姓名
     */
    @TableField(value = "UPDATE_USER_NAME")
    private String updateUserName;

    /**
     * 删除时间
     */
    @TableField(value = "DELETE_TIME")
    private Date deleteTime;

    /**
     * 删除人id
     */
    @TableField(value = "DELETE_USER_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deleteUserId;

    /**
     * 删除人姓名
     */
    @TableField(value = "DELETE_NAME")
    private Long deleteName;

    /**
     * 是否删除
     */
    @TableField(value = "DELETE_FLAG")
    private Long deleteFlag;

    /**
     * 标准项序号
     */
    @TableField(value = "SERIAL_NUM")
    private Double serialNum;

    /**
     * 标准项名称
     */
    @TableField(value = "STANDARD_NAME")
    private String standardName;

    /**
     * 内容项序号
     */
    @TableField(value = "CONTENT_NUM")
    private Double contentNum;

    /**
     * 检查内容
     */
    @TableField(value = "CHECK_CONTENT")
    private String checkContent;

    /**
     * 选择的结果
     */
    @TableField(value = "SELECTION")
    private String selection;

    /**
     * 问题描述
     */
    @TableField(value = "PROBLEM_CONTENT")
    private String problemContent;

    /**
     * 临时存储整改图片信息
     */
    @TableField(exist = false)
    private String rectificationImage;

    /**
     * 临时存储问题文件
     */
    @TableField(value = "PROBLEM_FILE")
    private String problemFile;

    /**
     * 标准名称
     */
    @TableField(value = "PROBLEM_CONTENT_INPUT")
    private String problemContentInput;

    /**
     * 标准名称
     */
    @TableField(value = "MISSING_ITEM_CONTENT_INPUT")
    private String missingItemContentInput;

    /**
     * 检查说明
     */
    @TableField(value = "MISSING_ITEM_CONTENT")
    private String missingItemContent;

    private static final long serialVersionUID = 1L;
}
